define({ "api": [
  {
    "type": "post",
    "url": "/user/autoLogin",
    "title": "自动登录",
    "name": "autoLogin",
    "description": "<p>自动登录接口，客户端需要支持cookie</p>",
    "group": "GroupUser",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "name",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token令牌</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"name\": \"LiLei\",\n  \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiYWRtaW4iLCJ0aW1lIjoxNTEyNDU2NjIzMTA1fQ.Zn3IC15MxoABaMZcy0nfqubzYEg-wky5IiwKFCvRuwU\"\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>成功时的数据</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "data.name",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "data.token",
            "description": "<p>token令牌</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "message",
            "description": "<p>文本信息</p>"
          },
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "status",
            "description": "<p>0：失败，1：成功</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Example:",
          "content": "HTTP/1.1 200 OK\n{\n  \"status\": 1,\n  \"message\": \"操作成功\",\n  \"data\": {\n    \"name\": \"LiLei\",  \n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiYWRtaW4iLCJ0aW1lIjoxNTEyNDU2NjIzMTA1fQ.Zn3IC15MxoABaMZcy0nfqubzYEg-wky5IiwKFCvRuwU\"\n  }\n}",
          "type": "json"
        }
      ]
    },
    "filename": "api/login.js",
    "groupTitle": "管理员"
  },
  {
    "type": "get",
    "url": "/user/captcha",
    "title": "获取验证码",
    "name": "getCaptcha",
    "description": "<p>获取验证码接口，客户端需要支持cookie</p>",
    "group": "GroupUser",
    "version": "1.0.0",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "data",
            "description": "<p>svg字符串</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "message",
            "description": "<p>文本信息</p>"
          },
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "status",
            "description": "<p>0：失败，1：成功</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Example:",
          "content": "HTTP/1.1 200 OK\n{\n  \"status\": 1,\n  \"message\": \"操作成功\",\n  \"data\": \"<svg>...</svg>\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "api/login.js",
    "groupTitle": "管理员"
  },
  {
    "type": "post",
    "url": "/user/login",
    "title": "登录",
    "name": "login",
    "description": "<p>登录接口，客户端需要支持cookie</p>",
    "group": "GroupUser",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "name",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "pwd",
            "description": "<p>密码（明文）</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "captcha",
            "description": "<p>验证码</p>"
          },
          {
            "group": "Parameter",
            "type": "boolean",
            "optional": false,
            "field": "remember",
            "description": "<p>是否30天自动登录，true: 是, false: 否</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"name\": \"LiLei\",\n  \"pwd\": \"123456\",\n  \"captcha\": \"12\",\n  \"remember\": true\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "object",
            "optional": false,
            "field": "data",
            "description": "<p>成功时的数据</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "data.name",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "data.token",
            "description": "<p>token</p>"
          },
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "message",
            "description": "<p>文本信息</p>"
          },
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "status",
            "description": "<p>0：失败，1：成功</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Example:",
          "content": "HTTP/1.1 200 OK\n{\n  \"status\": 1,\n  \"message\": \"操作成功\",\n  \"data\": {\n    \"name\": \"LiLei\",\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiYWRtaW4iLCJ0aW1lIjoxNTEyNDU2NjIzMTA1fQ.Zn3IC15MxoABaMZcy0nfqubzYEg-wky5IiwKFCvRuwU\"\n  }\n}",
          "type": "json"
        }
      ]
    },
    "filename": "api/login.js",
    "groupTitle": "管理员"
  },
  {
    "type": "get",
    "url": "/user/logout",
    "title": "退出登录",
    "name": "logout",
    "description": "<p>退出登录接口，请求成功后清空登录session和cookie信息</p>",
    "group": "GroupUser",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "name",
            "description": "<p>用户名</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Example:",
          "content": "HTTP/1.1 200 OK\n{\n  \"status\": 1,\n  \"message\": \"操作成功\",\n}",
          "type": "json"
        }
      ],
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "string",
            "optional": false,
            "field": "message",
            "description": "<p>文本信息</p>"
          },
          {
            "group": "Success 200",
            "type": "number",
            "optional": false,
            "field": "status",
            "description": "<p>0：失败，1：成功</p>"
          }
        ]
      }
    },
    "filename": "api/login.js",
    "groupTitle": "管理员"
  }
] });
